//
//  SecondCellTableViewCell.m
//  product_B
//
//  Created by zyc on 16/5/29.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "SecondCellTableViewCell.h"

@implementation SecondCellTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setFirstWithMusicModel:(MusicModel *)model{
    MusicAuthorModel *author = model.author;
    [_firstButton sd_setBackgroundImageWithURL:[NSURL URLWithString:model.cover] forState:UIControlStateNormal];
    _firstButton.tag = 100;
    _firstTitle.text = model.title;
    _firstAuthor.text = author.user_name;
}

- (void)setSecondWithMusicModel:(MusicModel *)model{
    MusicAuthorModel *author = model.author;
    [_secondButton sd_setBackgroundImageWithURL:[NSURL URLWithString:model.cover] forState:UIControlStateNormal];
    _secondButton.tag = 101;
    _secondTitle.text = model.title;
    _secondAuthor.text = author.user_name;
}

- (void)setThirdWithMusicModel:(MusicModel *)model{
    MusicAuthorModel *author = model.author;
    [_thirdButton sd_setBackgroundImageWithURL:[NSURL URLWithString:model.cover] forState:UIControlStateNormal];
    _thirdButton.tag = 102;
    _thirdTitle.text = model.title;
    _thirdAuthor.text = author.user_name;
}



@end
